﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace BNB7.Entry
{
    public class Joypad
    {
        public static Rectangle cachedHUDRect = new Rectangle(0, 0, 800, 480);

        public static Rectangle aButtonRect = new Rectangle(715, 399, 65, 65);

        public static bool Is_Up(Vector2 v)
        {
            return v.X > 65 && v.X < 139 &&
            v.Y > 144 && v.Y < 208;
        }

        public static bool Is_Down(Vector2 v)
        {
            return v.X > 65 && v.X < 139 &&
            v.Y > 281 && v.Y < 345;
        }

        public static bool Is_Left(Vector2 v)
        {
            return v.X < 66 &&
            v.Y > 209 && v.Y < 282;
        }

        public static bool Is_Right(Vector2 v)
        {
            return v.X > 138 && v.X < 204 &&
            v.Y > 209 && v.Y < 282;
        }

        public static bool Is_LayPopo(Vector2 v)
        {
            return v.X > 710 && v.X < 775 &&
            v.Y > 213 && v.Y < 277;
        }
    }
}
